package com.evision.webcrawler.controller;

import com.evision.webcrawler.configure.SysConfigure;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class RestApiController {
    @Autowired
    private SysConfigure sysConfigure;

    @RequestMapping("/version")
    public String getInfo() {
        return sysConfigure.getVersion();
    }
}
